package com.laivi.basic.module.log;

import org.slf4j.LoggerFactory;

import com.laivi.basic.util.LangUtil;

/**
 * @author laivi.zhu@gmail.com
 * @date 2014-7-2
 * description:
 */
public class Logs {
	private static final boolean slf4jExist=LangUtil.isExist("org.slf4j.Logger");
	
	 public static <T> Log getLog(Class<T> klass){
		return slf4jExist?new Slf4jLogger(LoggerFactory.getLogger(klass)):new SystemLogger(klass);
	}
}
